﻿@model FMIS.Models.Person

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Person</legend>

        @Html.HiddenFor(model => model.PersonId)

        <div class="editor-label">
            @Html.LabelFor(model => model.PersonFirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PersonFirstName)
            @Html.ValidationMessageFor(model => model.PersonFirstName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PersonLastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PersonLastName)
            @Html.ValidationMessageFor(model => model.PersonLastName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PersonFullName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PersonFullName)
            @Html.ValidationMessageFor(model => model.PersonFullName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PersonGender)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PersonGender)
            @Html.ValidationMessageFor(model => model.PersonGender)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BloodGroup)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BloodGroup)
            @Html.ValidationMessageFor(model => model.BloodGroup)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Weight)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Weight)
            @Html.ValidationMessageFor(model => model.Weight)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Height)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Height)
            @Html.ValidationMessageFor(model => model.Height)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.State)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.State)
            @Html.ValidationMessageFor(model => model.State)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateOfBirth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateOfBirth)
            @Html.ValidationMessageFor(model => model.DateOfBirth)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlaceOfBirtth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlaceOfBirtth)
            @Html.ValidationMessageFor(model => model.PlaceOfBirtth)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nationality)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nationality)
            @Html.ValidationMessageFor(model => model.Nationality)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PassportNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PassportNumber)
            @Html.ValidationMessageFor(model => model.PassportNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PassportIssueDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PassportIssueDate)
            @Html.ValidationMessageFor(model => model.PassportIssueDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PassportExpireDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PassportExpireDate)
            @Html.ValidationMessageFor(model => model.PassportExpireDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PassportIssuePlace)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PassportIssuePlace)
            @Html.ValidationMessageFor(model => model.PassportIssuePlace)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDCard)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDCard)
            @Html.ValidationMessageFor(model => model.IDCard)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateOfCreation)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateOfCreation)
            @Html.ValidationMessageFor(model => model.DateOfCreation)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IssuePlace)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IssuePlace)
            @Html.ValidationMessageFor(model => model.IssuePlace)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PublicComment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PublicComment)
            @Html.ValidationMessageFor(model => model.PublicComment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Country)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Country)
            @Html.ValidationMessageFor(model => model.Country)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Address)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City)
            @Html.ValidationMessageFor(model => model.City)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.County)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.County)
            @Html.ValidationMessageFor(model => model.County)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Postcode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Postcode)
            @Html.ValidationMessageFor(model => model.Postcode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsPublicContact)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsPublicContact)
            @Html.ValidationMessageFor(model => model.IsPublicContact)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PrivateNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PrivateNumber)
            @Html.ValidationMessageFor(model => model.PrivateNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkNumber)
            @Html.ValidationMessageFor(model => model.WorkNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PrivateCell)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PrivateCell)
            @Html.ValidationMessageFor(model => model.PrivateCell)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PrivateEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PrivateEmail)
            @Html.ValidationMessageFor(model => model.PrivateEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkEmail)
            @Html.ValidationMessageFor(model => model.WorkEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegularCountry)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegularCountry)
            @Html.ValidationMessageFor(model => model.RegularCountry)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegularAddress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegularAddress)
            @Html.ValidationMessageFor(model => model.RegularAddress)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegularCity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegularCity)
            @Html.ValidationMessageFor(model => model.RegularCity)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegularCounty)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegularCounty)
            @Html.ValidationMessageFor(model => model.RegularCounty)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegularPostcode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegularPostcode)
            @Html.ValidationMessageFor(model => model.RegularPostcode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CareerFromdate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CareerFromdate)
            @Html.ValidationMessageFor(model => model.CareerFromdate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CareerEnddate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CareerEnddate)
            @Html.ValidationMessageFor(model => model.CareerEnddate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CareerWorkplace)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CareerWorkplace)
            @Html.ValidationMessageFor(model => model.CareerWorkplace)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CareerPosition)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CareerPosition)
            @Html.ValidationMessageFor(model => model.CareerPosition)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EducationLevel)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EducationLevel)
            @Html.ValidationMessageFor(model => model.EducationLevel)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Major)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Major)
            @Html.ValidationMessageFor(model => model.Major)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Language)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Language)
            @Html.ValidationMessageFor(model => model.Language)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FamilyBackground)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FamilyBackground)
            @Html.ValidationMessageFor(model => model.FamilyBackground)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
